import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import work.huangxin.share.MiniProgramRunApp;
import work.huangxin.share.controller.sechand.SechandGoodsController;
import work.huangxin.share.domain.other.Audience;
import work.huangxin.share.domain.other.OSSMessage;
import work.huangxin.share.domain.other.WXMessage;
import work.huangxin.share.domain.schedule.ClassSchedule;
import work.huangxin.share.domain.schedule.ClassSecheduleVO;
import work.huangxin.share.mapper.ClassScheduleMapper;
import work.huangxin.share.mapper.SechandGoodsMapper;
import work.huangxin.share.service.impl.ReplayMessageOperationService;
import work.huangxin.share.util.RedisUtil;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


@SpringBootTest(classes = MiniProgramRunApp.class)
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
public class test {

    @Autowired
    private RedisUtil redisUtil;

    @Autowired
    private OSSMessage ossMessage;

    @Autowired
    private WXMessage wxMessage;

    @Autowired
    private Audience audience;
    @Resource
    private ReplayMessageOperationService replayMessageOperationService;

    @Autowired
    private SechandGoodsMapper sechandGoodsMapper;
    @Autowired
    private SechandGoodsController sechandGoodsController;

    @Autowired
    private ClassScheduleMapper classScheduleMapper;

    @Before
    public void setup() {
    }


    @Test
    public void simple() {
        ArrayList<Object> objects = new ArrayList<>();
        objects.add(1);
        objects.add(2);
    }
    @Test
    public void test(){
        List<ClassSecheduleVO> classSecheduleVOS = classScheduleMapper.selectByClazzNameWithNote(28L, "软件工程2102");
        System.out.println(classSecheduleVOS);
    }
}
